<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path=request.getContextPath();
%>
<html>
  <head>
    <title>添加用户</title>
    <script type="text/javascript" src="<%=path%>/js/jquery.js"></script>
  	<link href="<%=path%>/css/verify.css" rel="stylesheet" type="text/css" />
  	<link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="<%=path%>/js/regverify.js"></script>
  </head>
  
  <body bgcolor="#EEF2FB">
  		<br/>
	  	<h1>添加用户</h1>
	  	<font color="red">${error}</font>
	  	<form action="<%=path%>/user/add.dch" method="post" id="regform">
	  		<table>
	  			<tr><td>用户名:</td><td><input type="text" name="user.username" value="${user.username}" class="required" id="username" size="19"/></td>
	  				<td class="warning"><span id="collision"></span></td>
	  			</tr>
		    	<tr><td>密码:</td><td><input type="password" name="user.password"  class="required" id="pwd"/></td>
		    		<td><span id=""></span></td>
		    	</tr>
		    	<tr><td>密码确认:</td><td><input type="password" name="confirm"  class="required" id="cfm"/></td>
		    		<td class="warning"><span id="cfmerror"></span></td>
		    	</tr>
		    	<tr>
		    		<td>验证码:</td><td><input type="text" name="checkcode" size="8" class="required" id="cc"/><img src="<%=path%>/jsp/image.jsp"/></td>
		    		<td class="warning"><span id="ccerror"></span></td>
		    	</tr>
		    	<tr>
		    		<td colspan="2" align="center">
			    	<input type="button" value="添加" id="registor"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			    	<input type="reset" value="重置"/>
					</td>
				</tr>
		    	
	    	</table>
	    </form>
  </body>
    
</html>
